package com.qf.mapper;

import com.qf.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;
@Mapper
public interface EmpolyeeMapper {

    //查询所有的员工
    List<Employee> getALLemp();
    //增加一个员工
    void  addEmpolyee(Employee employee);
    //根据id查询员工
    Employee findEmpolyeeById(Integer empId);
    //修改员工信息
    void updateEmpolyee(Employee employee);

    //删除员工
    void  deleteEmpolyee(Integer empId);

    //根据部门id获取员工
    Employee findEmployeeByDeptId(Integer deptId);

    //分页查询员工信息
   List<Employee> getEmployeePage();
}
